#ifndef MAIN_WINDOW_H
#define MAIN_WINDOW_H

#include <QVector>
#include <QMessageBox>
#include <presentation_window.h>
#include <ui_main_window.h>

class MainWindow: public QMainWindow, public Ui::MainWindow
{
	Q_OBJECT
	
	public:
		MainWindow(QWidget* parent = 0);
		void moveToCenter();
		
	private slots:
		QVector<qreal> getProdactionCosts();
		QVector<qreal> getStorageExpenses();
		void calculate();
		void clearFields();
	
	private:
		PresentationWindow* board;
		bool isFieldsNotEmpty();
		bool isFieldsHavePositiveValues();	
};

#endif
